import React, { Component, lazy } from 'react'
import { NavLink } from 'react-router-dom'



/* 组件懒加载 当用到这个组件时才会进行加载 */
const Home = lazy(() => import('./Home'))

export default class MyNavLink extends Component {
  render() {
    // console.log(this.props);
    return (
      <NavLink activeClassName="atguigu" className="list-group-item" {...this.props} />
    )
  }
}

